package com.tiger.communal.mapper;

import java.util.List;

import com.tiger.communal.domain.HydropowerSubmeter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;


/**
 * 水电分表Mapper接口
 *
 * @author standard
 * @date 2022-10-13
 */
@Component
public interface HydropowerSubmeterMapper
{
    /**
     * 查询水电分表
     *
     * @param id 水电分表主键
     * @return 水电分表
     */
    public HydropowerSubmeter selectHydropowerSubmeterById(Long id);

    /**
     * 查询水电分表列表
     *
     * @param hydropowerSubmeter 水电分表
     * @return 水电分表集合
     */
    public List<HydropowerSubmeter> selectHydropowerSubmeterList(HydropowerSubmeter hydropowerSubmeter);

    /**
     * 新增水电分表
     *
     * @param hydropowerSubmeter 水电分表
     * @return 结果
     */
    public int insertHydropowerSubmeter(HydropowerSubmeter hydropowerSubmeter);

    /**
     * 修改水电分表
     *
     * @param hydropowerSubmeter 水电分表
     * @return 结果
     */
    public int updateHydropowerSubmeter(HydropowerSubmeter hydropowerSubmeter);

    /**
     * 删除水电分表
     *
     * @param id 水电分表主键
     * @return 结果
     */
    public int deleteHydropowerSubmeterById(Long id);

    /**
     * 批量删除水电分表
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHydropowerSubmeterByIds(Long[] ids);

    public List<String> getAssetId(Long hydropowerId);
    }
